package com.smart.sso.server.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.smart.mvc.dao.mybatis.Dao;
import com.smart.sso.server.model.RoleLog;

public interface RoleLogDao extends Dao<RoleLog, Integer> {
	public List<RoleLog> findByRoleId(@Param("roleId") Integer roleId);

	public int deleteByOperationIds(@Param("idList") List<Integer> idList);

	public int deleteByRoleIds(@Param("idList") List<Integer> idList);

	public int deleteByAppIds(@Param("idList") List<Integer> idList);

	public int deleteByAppAndRoleId(@Param("appId") Integer appId, @Param("roleId") Integer roleId);
}
